<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/5/2 0002
  Time: 15:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <script src="${pageContext.request.contextPath}/resources/js/jquery.min.js" type="text/javascript"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css">
    <script src="${pageContext.request.contextPath}/resources/js/bootstrap.min.js" type="text/javascript"></script>

    <script src="${pageContext.request.contextPath}/resources/js/addStudent.js" type="text/javascript"></script>
    <style>
        ._div{
            width: 350px;
            position: absolute;
            left: 35%;
            right: 35%;
        }
    </style>
</head>
<body>
<jsp:include page="/jsp/teacher/top.jsp"/>
<div class="container">
    <div class="row clearfix">
        <jsp:include page="/jsp/teacher/class/class_title.jsp"/>
            <div class="col-md-10 column" style="float:left;margin-top: 50px">
                <div style="padding: 10px 30px 10px;" class="_div">
                    <form action="#" method="post" class="bs-example bs-example-form" role="form">
                        <div class="input-group" >
                            <span class="input-group-addon">学号</span>
                            <input type="text" class="form-control " maxlength="8" minlength="8" name="student_id" id="student_id" value=<%=request.getSession().getAttribute("class_id")%>>
                        </div>
                        <span id="notice_student_id" class="help-block"></span>
                        <br>
                        <div class="input-group">
                            <span class="input-group-addon">姓名</span>
                            <input type="text" class="form-control" name="student_name" id="student_name">
                        </div>
                        <br>
                        <p>
                            性别：
                            <input type="radio" name="student_sex" checked="checked" id="student_sex_man" value="男"><label
                            for="student_sex_man">男</label>
                            <input type="radio" name="student_sex" id="student_sex_woman" value="女"><label for="student_sex_woman">女</label>
                        </p>

                        <div class="input-group">
                            <span class="input-group-addon">年龄</span>
                            <input type="text" class="form-control" name="student_age" id="student_age" maxlength="2">
                        </div>
                        <br>
                        <div  class="input-group">
                            <span class="input-group-addon">状态</span>
                            <select class="form-control" id="student_state" name="student_state">
                                <option value="1">在读</option>
                                <option value="2">休学</option>
                                <option value="3">退学</option>
                                <option value="4">毕业</option>
                            </select>
                        </div>
                        <br>
                        <div class="input-group">
                            <span class="input-group-addon">电话</span>
                            <input type="text" class="form-control" name="student_phone" id="student_phone" maxlength="13">
                        </div>
                        <br>
                        <div class="input-group">
                            <span class="input-group-addon">QQ</span>
                            <input type="text" class="form-control" name="student_qq" id="student_qq">
                        </div>
                        <br>
                        <div class="input-group">
                            <span class="input-group-addon">地址</span>
                            <input type="text" class="form-control" name="student_address" id="student_address">
                        </div>
                        <br>
                        <div class="input-group">
                            <span class="input-group-addon">民族</span>
                            <input type="text" class="form-control" name="student_nation" id="student_nation">
                        </div>
                        <br>
                        <div  class="input-group">
                            <span class="input-group-addon">宿舍</span>
                            <select class="form-control" name="student_dormitory_id" id="student_dormitory_id"></select>
                        </div>
                        <br>
                        <input id="submit" class="btn btn-primary btn-lg btn-block" type="button" value="提交"><input class="btn btn-primary btn-lg btn-block" type="reset" value="重置">
                    </form>
                </div>
            </div>
    </div>
</div>
</body>
</html>
